package com.btl.component.crypto.aes.exception;

import com.btl.boot.exception.BaseException;

import java.io.Serial;

/**
 * System Exception is unexpected Exception, retry might work again
 *
 * @author Danny.Lee 2018/1/27
 */
public class EncryptException extends BaseException {

    @Serial
    private static final long serialVersionUID = 1L;

    private static final int DEFAULT_ERR_CODE = -1;

    public EncryptException(String errMessage) {
        super(DEFAULT_ERR_CODE, errMessage);
    }

    public EncryptException(int errCode, String errMessage) {
        super(errCode, errMessage);
    }

    public EncryptException(String errMessage, Throwable e) {
        super(DEFAULT_ERR_CODE, errMessage, e);
    }

    public EncryptException(int errorCode, String errMessage, Throwable e) {
        super(errorCode, errMessage, e);
    }

}
